package assignmentstrategy

import (
	"codejy/analysis/codeanalysis"
	"codejy/structdef"
)

type ReceiveErrorStrategy struct {
}

func init() {
	RegisterStrategy(&ReceiveErrorStrategy{})
}
func (n ReceiveErrorStrategy) getId() int {
	return codeanalysis.Receive
}

func (n ReceiveErrorStrategy) Execute(threadStore *structdef.ThreadStore, code string) string {
	return "\"" + threadStore.ErrorMsg + "\""
}
